Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: JManager Reference /
Chapter 1 - JManager Reference / JManager Functions
Applet Control Functions /


JMNewAppletViewer

Instantiates an applet.

OSStatus JMNewAppletViewer (
JMAppletViewerRef* viewer, 
JMAWTContextRef context, 
JMAppletLocatorRef locatorRef, 
UInt32 appletIndex, 
const JMAppletViewerCallbacks* callbacks, 
JMClientData data);
viewer
A pointer to an applet. On return, this parameter is the newly instantiated applet.
context
The AWT context associated with the applet.
locatorRef
The applet locator containing the applet.
appletIndex
The index of the applet to instantiate.
callbacks
A pointer to the applet viewer callbacks structure. See "Applet Callbacks Structure" (page 17) for more information.
data
Optional client-specific data.
function result
A result code. See "JManager Result Codes" (page 69) for a list of result codes that JManager may return in this field.
DISCUSSION
To instantiate an applet, you must first create an AWT context (and start the thread associated with it) and create an applet locator. The appletIndex value is an index number from 0 to appletCount-1, where appletCount is determined by the JMCountApplets function.

SEE ALSO
The JMCountApplets function (page 38).

The JMDisposeAppletViewer function (page 43).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 DEC 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help